/**
 * 联系我发送邮件
 */
function sendEmail(){
	var email = document.getElementById("email").value;
	var content = document.getElementById("content").value;
	if(email ==''){
		showAlertDiv('请留下你的邮箱!');
		return false;
	}
	if(content == ''){
		showAlertDiv('请留下你的意见!');
		return false;
	}
	$.post('sendEmail',{"email":email,"content":content},
			function(data){
				if(data && data.success){
					showAlertDiv('恭喜你，邮件发送成功!');
					document.getElementById("form-send").reset();
				}else{
					showAlertDiv('很遗憾，邮件发送失败!');
				}
			},'json'
		);
}

